Skip to content

Instantly share code, notes, and snippets.

user77 abubakarm

Block or report user

Report or block abubakarm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@abubakarm
abubakarm / code128visualbasic.vb
Created Nov 1, 2018
Visual Basic .net code to convert input to Code128 barcode font.
View code128visualbasic.vb
'taken from https://grandzebu.net/informatique/codbar-en/code128.htm please visit their website for more information.
'code below is working fine in vb.net, original code was older version, before .net days I think.
'imp link
'https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/data-types/type-characters
'type characters while declaring variables
'symbol Type Example
'% Integer Dim L%
'& Long Dim M&
'@ Decimal Const W@ = 37.5
@abubakarm
abubakarm / gdrive_download.txt
Created Jun 16, 2018
download file from google drive using WGET (for linux console)
View gdrive_download.txt
got the help from this link, good suggestions:
https://gist.github.com/iamtekeste/3cdfd0366ebfd2c0d805
what worked for me:
what I got from google drive (shareable link) was this:
`https://drive.google.com/open?id=ID`
changed it to:
`wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=ID' -O FILENAME`
View py1
herdsize = input("Enter herd size:")
records = {} #initialize record where cow names and data will be stored
minimumdata = {} #record data which is below minimum yield
totaldays = 2
minimumyield = 5 #litres
def Processing():
for i in range(1,totaldays+1):
print("Day " +str(i) +":")
print("-----------")
View renaming file names and stuff
//code for renaming (padding) 5 parts file names:
static void Main(string[] args)
{
//list_none_5_parts(); return;
/* where ever this is , we have lots of files here, in the format
10-001-99-001, the 3rd section, which is 99, can have any number there
but whats imp is that it shud be composed of 3 digit length*/
string[] files = Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory);
View abcd.cs
class mainstructure
{
public List<c2> results;
public string status;
}
class c2
{
public List<address_component> address_components;
public string formatted_address;
You can’t perform that action at this time.